<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String s=request.getParameter("dollar");
	double result = 0.00;
	if(s!=null && s.length() > 0)
	{
		double n=Double.parseDouble(s);
		result=n*7.8;
		out.print(s+" 美元= "+result+"人民币");
	}
	
	String path = request.getContextPath();
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script>
function change(o){
	alert(o.value);
}
</script>
</head>
<body>
<form name="MyForm" action="<%=path%>/test/create">
	请选择：<s:select name="custkind" list="map.custKind" listKey="id" listValue="name" onchange="change(this)" theme="simple"/>
	列1：<input type="text" name="col1" value=""/>
	<br>
	列2：<input type="text" name="col2" value=""/>
	<br>
	<input type="submit" name="BSubmit" value="提交"/>
</form>
</body>
</html>